package com.ruoyi.client.fxiaoke.beans;

/**
 * 接收的消息体
 * @author 官宇
 * @date 2020-05-18
 */
public class RecMessageBody {

    private String apiName;
    private String eventType;
    private String dataId;

    public String getApiName() {
		return apiName;
	}

	public void setApiName(String apiName) {
		this.apiName = apiName;
	}

	public String getEventType() {
		return eventType;
	}

	public void setEventType(String eventType) {
		this.eventType = eventType;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

	
	public String getDesc() {
		switch (this.eventType) {
		case "update":
			return "更新";
		case "insert":
			return "新增";
		case "delete":
			return "删除";
		case "invalid":
			return "作废";
		case "recover":
			return "恢复";
		default:
			return "未知";
		}
	}

	@Override
	public String toString() {
		return "RecMessageBody [apiName=" + apiName + ", eventType="
				+ eventType + ", dataId=" + dataId + "]";
	}
    
    

}
